﻿using System.Collections;

Stack stk = new Stack();
stk.Push('A');
stk.Push('D');
stk.Push('E');
stk.Push('B');

foreach (var item in stk)
{
    Console.WriteLine(item);
}

stk.Push('P');
stk.Push('Q');


Queue q = new Queue();
q.Enqueue("a");
q.Enqueue("b");
q.Enqueue("e");
q.Enqueue("t");
foreach (var item in q)
{
    Console.WriteLine(item);
}

var s = q.Dequeue();
Console.WriteLine(s);